package com.xiaoyun;

import com.xiaoyun.ba04.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppTest04 {
    @Test
    public void test02(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("ba04/ApplicationContext.xml");
        Student S1 = (Student)applicationContext.getBean("s1");
        System.out.println(S1);
    }
}
